<?php get_header(); ?>

	<div id="content">

		<?php if (have_posts()) : ?>

		<?php while (have_posts()) : the_post(); ?>
		  <div class="hentry" id="article-<?php the_ID(); ?>">
				<h2 class="entry-title">
          <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
          <?php the_comment_count_elem(); ?>
        </h2>

        <div class="posted">
          <span class="vcard">
            由 <span class="fn"><?php the_author() ?></span>
          </span>
          <abbr class="published" title="<?php the_time_xml() ?>"><span class="posted_date" title="<?php the_time('D, d M Y H:i:s T') ?>">发表于 <?php the_time('F d, Y') ?></span></abbr>
        </div>
			  <br class="clear" />	
				<div class="entry-content">
					<?php the_content('继续阅读...'); ?>
				</div>
				<ul class="meta">
          <li class="categories">发表在 <?php the_category(', ') ?></li>
          <li>元
            <?php comments_popup_link('没有评论', '1 评论', '% 评论'); ?>,
            <a href="<?php the_permalink() ?>" rel="bookmark">永久链接</a>,
            <?php comments_rss_link('rss'); ?>
          </li>
        </ul>
			</div>
	
		<?php endwhile; ?>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
			<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
		</div>
	
	<?php else : ?>

		<h2 class="center">未找到</h2>
		<?php include (TEMPLATEPATH . '/searchform.php'); ?>

	<?php endif; ?>
		
	</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
